package cn.marinda.totipotentwar.global.impl;

import cn.marinda.totipotentwar.global.AbstractGui;
import cn.marinda.totipotentwar.global.GameGui;
import cn.marinda.totipotentwar.global.ShopData;
import cn.marinda.totipotentwar.global.ShopGui;

/**
 * gui impl
 *
 * @author hwj
 * @date 2022/02/01
 */
public class GuiImpl {

    /**
     * 获得gui
     *
     * @param name 的名字
     * @return {@link AbstractGui}
     */
    public static AbstractGui getGui(String name){
        AbstractGui gui = null;
        switch (name){
            case "game":
                 gui = new GameGui();
                 break;
            case "shop":
                gui = new ShopGui();

                break;
            default:
                gui = null;
                break;
        }
        System.out.println("GuiName："+ gui.getGuiName());
        return gui;
    }
}
